HighContrast: set min-height for headerbars
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 22 Sep 2017 14:52:23 +0000 (22:52 +0800)
committerDaniel Boles <dboles.src@gmail.com>
Thu, 5 Oct 2017 21:36:52 +0000 (22:36 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=784562

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk-contained-inverse.css
gtk/theme/HighContrast/gtk-contained.css

index 7d42945f634626c18d8447625c312b59fd356fd7..abc820c7b5ef9eb862c13bc06ef8fb8b7c6cb7b4 100644 (file)
@@ -1181,6 +1181,7 @@ searchbar {
 
 .titlebar,
 headerbar {
+  min-height: 46px;
   border-width: 0 0 1px;
   border-style: solid;
   border-color: $borders_color;
@@ -1250,6 +1251,18 @@ headerbar {
   .fullscreen & {
     border-radius: 0;
   }
+
+  &.default-decoration {
+    min-height: 28px;
+    padding: 4px;
+
+    button.titlebutton {
+      min-height: 26px;
+      min-width: 26px;
+      margin: 0;
+      padding: 0;
+    }
+  }
 }
 
 /************
index 87f5427fb17033331aeed7ee6e277238b6280453..fd3fc86e0d6610a82bbdb9ef6e1ee28f8387e88e 100644 (file)
@@ -482,7 +482,7 @@ toolbar.inline-toolbar, searchbar.inline-toolbar { border-style: solid; border-c
 toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-color: #737373; background-color: #282828; box-shadow: none; }
 
 /*************** Header bars * */
-.titlebar, headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, #0a0a0a, #000); box-shadow: inset 0 -1px #262626, inset 0 1px #000; padding: 6px; }
+.titlebar, headerbar { min-height: 46px; border-width: 0 0 1px; border-style: solid; border-color: gray; border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, #0a0a0a, #000); box-shadow: inset 0 -1px #262626, inset 0 1px #000; padding: 6px; }
 
 .titlebar:backdrop, headerbar:backdrop { border-color: #737373; background-color: #000; background-image: none; box-shadow: none; }
 
@@ -520,6 +520,10 @@ toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-colo
 
 .tiled .titlebar, .maximized .titlebar, .fullscreen .titlebar, .tiled headerbar, .maximized headerbar, .fullscreen headerbar { border-radius: 0; }
 
+.titlebar.default-decoration, headerbar.default-decoration { min-height: 28px; padding: 4px; }
+
+.titlebar.default-decoration button.titlebutton, headerbar.default-decoration button.titlebutton { min-height: 26px; min-width: 26px; margin: 0; padding: 0; }
+
 /************ Pathbars * */
 .path-bar button { padding: 5px 6px 6px; }
 
index 9a438bb964582365e1629e6131c83dc9441be580..7b06e4603519684f7f5fa9d6a720229d12e6beda 100644 (file)
@@ -486,7 +486,7 @@ toolbar.inline-toolbar, searchbar.inline-toolbar { border-style: solid; border-c
 toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-color: #8d8d8d; background-color: #d7d7d7; box-shadow: none; }
 
 /*************** Header bars * */
-.titlebar, headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, white, #fff); box-shadow: inset 0 -1px #d9d9d9, inset 0 1px #fff; padding: 6px; }
+.titlebar, headerbar { min-height: 46px; border-width: 0 0 1px; border-style: solid; border-color: gray; border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, white, #fff); box-shadow: inset 0 -1px #d9d9d9, inset 0 1px #fff; padding: 6px; }
 
 .titlebar:backdrop, headerbar:backdrop { border-color: #8d8d8d; background-color: #fff; background-image: none; box-shadow: none; }
 
@@ -524,6 +524,10 @@ toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-colo
 
 .tiled .titlebar, .maximized .titlebar, .fullscreen .titlebar, .tiled headerbar, .maximized headerbar, .fullscreen headerbar { border-radius: 0; }
 
+.titlebar.default-decoration, headerbar.default-decoration { min-height: 28px; padding: 4px; }
+
+.titlebar.default-decoration button.titlebutton, headerbar.default-decoration button.titlebutton { min-height: 26px; min-width: 26px; margin: 0; padding: 0; }
+
 /************ Pathbars * */
 .path-bar button { padding: 5px 6px 6px; }